// 定义医院详情相关的类型
export interface ResponseDataRoot {
  code: number;
  message: string;
  ok: boolean;
}
// 医院详情的数据 data
export interface HospitalDetailData {
  bookingRule?: {
    cycle: number;
    releaseTime: string;
    stopTime: string;
    quitDay: number;
    quitTime: string;
    rule: string[];
  };
  hospital?: {
    id: string;
    createTime: string;
    updateTime: string;
    isDeleted: number;
    param: {
      hostypeString: string;
      fullAddress: string;
    };
    hoscode: string;
    hosname: string;
    hostype: string;
    provinceCode: string;
    cityCode: string;
    districtCode: string;
    address: string;
    logoData: string;
    intro: any;
    route: string;
    status: number;
    bookingRule: any;
  };
}

export interface HospitalDetail extends ResponseDataRoot {
  data: HospitalDetailData;
}

// 医院科室数据type
export interface Department {
  depcode: string;
  depname: string;
  children?: Department[];
}
export type HospitalDepartmentArrData = Department[];
export interface HospitalDepartment extends ResponseDataRoot {
  data: HospitalDepartmentArrData;
}
